<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<%--    <link rel="stylesheet" href="css/login.css" type="text/css">--%>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #wrap {
            height: 800px;
            width: 100%;
            background-image: url('images/background2.jpg');
            background-repeat: no-repeat;
            background-position: center center;
            position: relative;
        }
        #head {
            height: 80px;
            width: 100%;
            background-color: #66CCCC;
            text-align: center;
            position: relative;
        }
        #foot {
            width: 100%;
            height: 126px;
            background-color: #ee7700;
            position: relative;
        }
        .logGet {
            height: 408px;
            width: 368px;
            position: absolute;
            background-color: #FFFFFF;
            top:20%;
            right:18%;
            border: 2px inset black;
        }
        a button {
            width: 100%;
            height: 45px;
            background-color:#66CCCC;
            border: none;
            color: white;
            font-size: 18px;
        }
        .p1 {
            font-size: 28px;
            margin-top: 30px;
            width: 86%;
        }
        .logD{
            width: 86%;
            border-bottom: 1px solid #ee7700;
            margin: 0px auto 60px;/*上 左右 下*/
        }

        .lgD img {
            position: absolute;
            top: 12px;
            left: 8px;
        }
        .lgD input {
            width: 100%;
            height: 42px;
            text-indent: 2.5rem;
            font-size: 30px;
        }
        .lgD {
            width: 86%;
            position: relative;
            margin: 30px auto;
        }
        .logC {
            width: 86%;
            margin: 0px auto;
        }
        .logR{
            width: 86%;
            margin:30px  auto;
        }

        .title {
            font-family: "宋体";
            color: #FFFFFF;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);  /* 使用css3的transform来实现 */
            font-size: 42px;
            height: 40px;
            width: 30%;
        }

        .copyright {
            font-family: "宋体";
            color: #FFFFFF;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);  /* 使用css3的transform来实现 */
            height: 60px;
            width: 40%;
            text-align:center;
        }



    </style>
</head>

<body style="background-color:#1c77ac; background-image:url(<%=basePath%>images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">
<div id="head">
    <div class="title">智慧养老服务系统</div>
</div>
<form action="<%=basePath%>login.do" method="post">
<div  id="wrap">
    <div class="logGet">
        <!-- 头部提示信息 -->
        <div class="logD">
            <p class="p1" >登录</p>
        </div>
        <!-- 输入框 -->
        <div class="lgD">
            <img src="<%=basePath%>images/logName.png" width="20" height="20" alt=""/>
            <input type="text" class="inputgri" name="username" placeholder="输入用户名" />
        </div>
        <div class="lgD">
            <img src="<%=basePath%>images/logPwd.png" width="20" height="20" alt=""/>
            <input type="password" class="inputgri" name="password" placeholder="输入用户密码"/>
        </div>
        <div class="logC">
            <input type="submit" class="button" style="font-size: 25px;" value="登 录" />
        </div>

        <div class="logR">
<%--            <a href="<%=basePath%>/user/toregist.do" ><button>注 册1</button></a>--%>
            <input type="submit" class="button" style="font-size: 25px;" value="注 册" />
        </div>
    </div>
</div>
</form>

</body>
</html>
